package com.ihome.android.util;

import android.content.Context;
import android.view.View;

public class DeleteKey extends KeyFunction {
	public DeleteKey(Context paramContext, KeyItem paramKeyItem) {
		super(paramContext);
		this.item = paramKeyItem;
	}

	public AppConsts.KeyType getKeyType() {
		return AppConsts.KeyType.Del;
	}

	public View.OnClickListener getOnClickListener() {
		return new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {
				LetterKey.clickView = paramAnonymousView;
				CustomKeyboard.sendMsg(false);
				CustomKeyboard.sendCommand(DeleteKey.this.context, AppConsts.SearchType.Del, "", item.id);
			}
		};
	}
}